package com.woniuxy.educationplatform.service.impl;

import com.woniuxy.educationplatform.bean.QuesType;
import com.woniuxy.educationplatform.mapper.QuesMapper;
import com.woniuxy.educationplatform.mapper.QuesTypeMapper;
import com.woniuxy.educationplatform.service.IQuesTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Transactional(readOnly = true)
@Service
public class QuesTypeServiceImpl implements IQuesTypeService {

    @Resource
    private QuesTypeMapper quesTypeMapper;

    @Override
    public List<QuesType> findAll() {
        return quesTypeMapper.findAll();
    }

    @Override
    public QuesType getOneById(Long id) {
        return quesTypeMapper.getOneById(id);
    }
}
